package com.easyctba.core.domain.vo;

import com.easyctba.core.domain.CtbaProject;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.easyctba.common.excel.annotation.ExcelDictFormat;
import com.easyctba.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;


/**
 * 工程视图对象 ctba_project
 *
 * @author Huang
 * @date 2024-02-09
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = CtbaProject.class)
public class CtbaProjectVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private Long id;

    /**
     * 用户id
     */
    @ExcelProperty(value = "用户id")
    private Long userId;

    /**
     * 项目名
     */
    @ExcelProperty(value = "项目名")
    private String projectName;

    /**
     * 项目类型
     */
    @ExcelProperty(value = "项目类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "ctba_project_type")
    private String projectType;

    /**
     * 创建时间
     */
    private Date createTime;
}
